package com.cafuc.jdk8;

import com.cafuc.entity.User;

import java.util.function.Consumer;

public class LambdaOperation {

    public void lambdaTest() {
        Thread tread1 = new Thread(() -> {
            System.out.println("==== start thread ====");
        });
        Runnable runnable = () -> System.out.println("==== start thread ====");

        final Consumer<User> call = User::getUserName;
        User.display();
        Runnable display = User::display;
        final Runnable runnable1 = System.out::println;
    }
}
